package com.dhkj.web.systemcenter;

import android.content.Context;

import com.alibaba.fastjson.JSONObject;
import com.dhkj.web.utils.MyObserverRes;
import com.dhkj.web.utils.RxHelper;

public class SysCenterRequestUtils {


    public static void init(Context context, String deviceSn, MyObserverRes<JSONObject> observer) {
        RetrofitSysCenterUtils.getApiUrl().findDevice(deviceSn)
                .compose(RxHelper.observableIO2Main(context))
                .subscribe(observer);
    }
}
